﻿using System;
using System.Xml.Serialization;

using Gonte.Xml.Serialization;

namespace Gonte
{
    public class ProxyObject
        : NamedObject
        , IXmlSerializableObject

    {
        #region Properties

        public string Type
        {
            get { return type_; }
            set { type_ = value; }
        }

        [XmlIgnore()]
        public Object Object
        {
            get { return object_; }
            set { object_ = value; }
        }

        #endregion

        #region IXmlSerializableObject Members

        public XmlObjectSerializer GetSerializer()
        {
            throw new NotImplementedException();
        }

        public XmlObjectDeserializer GetDeserializer()
        {
            return new ProxyObjectDeserializer(this);
        }

        #endregion

        #region Fields

        private string type_;
        private Object object_;

        #endregion        
    }
}
